c program to find area and perimeter of a triangle